package org.hyl.javabase.多线程;

public class thread2 implements Runnable {
	private int count = 15;
	private String name;

	public thread2(String name) {
		this.name = name;
	}

	public void run() {
		System.out.println(Thread.currentThread().getName() + " 线程运行开始!");
		for (int i = 0; i < 10; i++) {
			System.out.println(Thread.currentThread().getName() + "运行  count= " + count--);
			//System.out.println(name + "运行，i=" + i);
		}
		System.out.println(Thread.currentThread().getName() + " 线程运行结束!");
	}
}
